﻿<template>
  <div class="l-rblock l-form-viewer" style="padding: 8px">
    <el-form
      :model="formData"
      size="mini"
      labelPosition="right"
      labelWidth="80px"
      ref="form"
    >
      <div class="l-auto-window only-tabs">
        <el-tabs v-model="activeName" type="card">
          <el-tab-pane
            class="l-tabs-container"
            :label="$t('主表信息')"
            name="tab0"
          >
            <el-row :gutter="0">
              <div class="l-rblock">
                <el-col :span="24">
                  <el-form-item :label="$t('租户名称')" prop="f_Name">
                    <el-input
                      v-model="formData.f_Name"
                      :placeholder="$t('请输入')"
                    >
                    </el-input>
                  </el-form-item>
                </el-col>
              </div>
            </el-row>
          </el-tab-pane>
        </el-tabs>
      </div>
    </el-form>
  </div>
</template>
<script>
const api = window.$api.sass.tenantGroup;

export default {
  data() {
    return {
      activeName: "tab0",
      formData: {
        f_Name: "", // 名称
      },
    };
  },
  methods: {
    // 重置表单
    resetForm() {
      this.$formClear(this.$refs.form);
      this.activeName = "tab0";
    },
    async delete(id) {
      await api.deleteTenants(id,{name:this.formData.f_Name});
    },
  },
};
</script>